import { getDeliveryInfo,postDeliveryInfo,getlistLog } from 'api/delivery'

const delivery = {
	state : {

	},
	actions : {
		GetDeliveryInfo:function({commit},option){
			return new Promise((resolve,reject) => {
		        getDeliveryInfo().then(response => {
		          resolve(response);
		        }).catch(error => {
		          reject(error)
		        })
		    })
		},
		postDeliveryInfo:function({commit},data){
			return new Promise((resolve,reject) => {
		        postDeliveryInfo(data).then(response => {
		          resolve(response);
		        }).catch(error => {
		          reject(error)
		        })
		    })
		},
		GetlistLog:function({commit}){
			return new Promise((resolve,reject) => {
		        getlistLog().then(response => {
		          resolve(response);
		        }).catch(error => {
		          reject(error)
		        })
		    })
		}
	}
}
export default delivery
